<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- qcolortransform.cpp -->
  <title>QColorTransform Class | Qt GUI 5.14.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.14</a></td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QColorTransform</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.14.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QColorTransform Class</h1>
<!-- $$$QColorTransform-brief -->
<p>The QColorTransform class is a transformation between color spaces. <a href="#details">More...</a></p>
<!-- @@@QColorTransform -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QColorTransform&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.14</td></tr></table></div><p>This class was introduced in Qt 5.14.</p>
<ul>
<li><a href="qcolortransform-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QRgb </td><td class="memItemRight bottomAlign"><b><a href="qcolortransform.html#map">map</a></b>(QRgb <i>argb</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRgba64 </td><td class="memItemRight bottomAlign"><b><a href="qcolortransform.html#map-1">map</a></b>(QRgba64 <i>rgba64</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="qcolortransform.html#map-2">map</a></b>(const QColor &amp;<i>color</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QColorTransform-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>QColorTransform is an instantiation of a transformation between color spaces. It can be applied on color and pixels to convert them from one color space to another.</p>
<p>Setting up a QColorTransform takes some preprocessing, so keeping around QColorTransforms that you need often is recommended, instead of generating them on the fly.</p>
</div>
<!-- @@@QColorTransform -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$map[overload1]$$$mapQRgb -->
<h3 class="fn" id="map"><a name="map"></a><span class="type"><a href="qcolor.html#QRgb-typedef">QRgb</a></span> QColorTransform::<span class="name">map</span>(<span class="type"><a href="qcolor.html#QRgb-typedef">QRgb</a></span> <i>argb</i>) const</h3>
<p>Applies the color transformation on the <a href="qcolor.html#QRgb-typedef">QRgb</a> value <i>argb</i>.</p>
<p>The input should be opaque or unpremultiplied.</p>
<!-- @@@map -->
<!-- $$$map$$$mapQRgba64 -->
<h3 class="fn" id="map-1"><a name="map-1"></a><span class="type"><a href="qrgba64.html">QRgba64</a></span> QColorTransform::<span class="name">map</span>(<span class="type"><a href="qrgba64.html">QRgba64</a></span> <i>rgba64</i>) const</h3>
<p>Applies the color transformation on the <a href="qrgba64.html">QRgba64</a> value <i>rgba64</i>.</p>
<p>The input should be opaque or unpremultiplied.</p>
<!-- @@@map -->
<!-- $$$map$$$mapconstQColor& -->
<h3 class="fn" id="map-2"><a name="map-2"></a><span class="type"><a href="qcolor.html">QColor</a></span> QColorTransform::<span class="name">map</span>(const <span class="type"><a href="qcolor.html">QColor</a></span> &amp;<i>color</i>) const</h3>
<p>Applies the color transformation on the <a href="qcolor.html">QColor</a> value <i>color</i>.</p>
<!-- @@@map -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
